#ifndef _ADS1220_H_
#define _ADS1220_H_

/* Includes ------------------------------------------------------------------*/
#include "fm33lg0xx_fl.h"
#include "main.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#ifdef _ADS1220_C_
#include "soft_spi.h"
#endif
/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
/* USER CODE BEGIN EFP */
void vADS1220Start(void);
void vADS1220Reset(void);
void vADS1220Config(uint8_t ucRegs00h, uint8_t ucRegs01h, uint8_t ucRegs02h, uint8_t ucRegs03h);
void vADS1220GetConvData(uint8_t *pucData);
void vADS1220ReadRegs(uint8_t *pucData);
uint32_t ulADS1220GetADCDataAverage(void);
uint32_t ulADS1220GetADCDataMedian(void);
/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */
#endif // _ADS1220_H_
